using System;
using Newtonsoft.Json;

namespace KKCai.TV.Model
{
    public class RecordInfo
    {
        public RecordInfo() { }

        public RecordInfo(string phase, string result)
        {
            Phase = phase;
            Result = result;
        }

        [JsonIgnore]
        public virtual int ID { get; private set; }

        [JsonProperty("phase")]
        public virtual string Phase { get; set; }

        [JsonProperty("result")]
        public virtual string Result { get; set; }

        [JsonIgnore]
        public virtual int Num
        {
            get
            {
                return Convert.ToInt32(Phase.Substring(Phase.Length - 2));
            }
        }
    }
}
